package com.ukao.pad.bean;

import com.ukao.pad.utils.CheckUtils;

import java.util.List;

/**
 * Created by ukaodev on 2017/7/28.
 */

public class FactoryBatchInBean extends  BaseBean<FactoryBatchInBean>{






    /**
     * mercId : 1
     * finishText : 未完成
     * code : 89312357
     * factoryId : null
     * productCnt : 0
     * factoryWorkName : 袁馥
     * factoryName : null
     * cityId : 1
     * isFinish : 0
     * storeId : 19
     * factoryWorkTime : 1500860998000
     * logisticsWorkPhone : 13106093576
     * annexCnt : 0
     * logisticsWorkName : 郭悦媛
     * logisticsWorkTime : 1500774596000
     * statusText : 送往工厂途中
     * storeWorkTime : 1499844060000
     * storeName : 再添加门店
     * id : 21
     * status : 2
     */


    private int  isEnterType;
    private int mercId;
    private String finishText;
    private String code;
    private Object factoryId;
    private int productCnt;
    private String factoryWorkName;
    private String factoryName;
    private int cityId;
    private int isFinish;
    private int storeId;
    private long factoryWorkTime;
    private String logisticsWorkPhone;
    private int annexCnt;
    private String logisticsWorkName;
    private long logisticsWorkTime;
    private String statusText;
    private long storeWorkTime;
    private String storeName;
    private String id;
    private int status;
    private   boolean  isFinishStockIn;
    private  String  name ;
    private  long time;
    private  boolean isgreed;
    private  String  scanCode;
    private String  orderId;
    private String   orderNo;
    private  int   isFactoryConfirm;


    public boolean getIsFactoryConfirm() {
        if (isFactoryConfirm==1){//1代表入厂
            return  true;
        }
        return false;
    }

    private List<ProductBatchInBean> proList;

    public String getScanCode() {
        return CheckUtils.isEmptyString(scanCode);
    }

    public List<ProductBatchInBean> getProList() {
        return proList;
    }



    public String getOrderNo() {
        return orderNo;
    }

    public String getOrderId() {
        return orderId;
    }

    public int getEnterFactoryType() {
        return isEnterType;
    }

    public void setEnterFactoryType(int isEnterType) {
        this.isEnterType = isEnterType;
    }

    public  FactoryBatchInBean(String  name , long time, boolean isgreed){
        this.name=name;
        this.time=time;
        this.isgreed=isgreed;

    }



    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public boolean isgreed() {
        return isgreed;
    }

    public void setIsgreed(boolean isgreed) {
        this.isgreed = isgreed;
    }

    public int getMercId() {
        return mercId;
    }

    public void setMercId(int mercId) {
        this.mercId = mercId;
    }

    public String getFinishText() {
        return finishText;
    }

    public void setFinishText(String finishText) {
        this.finishText = finishText;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Object getFactoryId() {
        return factoryId;
    }

    public void setFactoryId(Object factoryId) {
        this.factoryId = factoryId;
    }

    public String getProductCnt() {
        return  "衣服 "+productCnt+" 件,";
    }

    public  String  getProductSum(){


        return "共 "+(productCnt+annexCnt)+" 件";
    }
    public  int  getallProductSum(){


        return productCnt+annexCnt;
    }
    public void setProductCnt(int productCnt) {
        this.productCnt = productCnt;
    }

    public String getFactoryWorkName() {
        return factoryWorkName;
    }

    public void setFactoryWorkName(String factoryWorkName) {
        this.factoryWorkName = factoryWorkName;
    }

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName;
    }

    public int getCityId() {
        return cityId;
    }

    public void setCityId(int cityId) {
        this.cityId = cityId;
    }

    public boolean getIsFinish() {
        boolean  isfinish=false;
        if (isFinish==1){
            isfinish=true;;
            return   isfinish;
        }

        return   isfinish;
    }

    public void setIsFinish(int isFinish) {
        this.isFinish = isFinish;
    }

    public int getStoreId() {
        return storeId;
    }

    public void setStoreId(int storeId) {
        this.storeId = storeId;
    }

    public long getFactoryWorkTime() {
        return factoryWorkTime;
    }

    public void setFactoryWorkTime(long factoryWorkTime) {
        this.factoryWorkTime = factoryWorkTime;
    }

    public String getLogisticsWorkPhone() {
        return logisticsWorkPhone;
    }

    public void setLogisticsWorkPhone(String logisticsWorkPhone) {
        this.logisticsWorkPhone = logisticsWorkPhone;
    }

    public String getAnnexCnt() {
        return  "附件 "+annexCnt+" 件。";
    }

    public void setAnnexCnt(int annexCnt) {
        this.annexCnt = annexCnt;
    }

    public String getLogisticsWorkName() {
        return logisticsWorkName;
    }

    public void setLogisticsWorkName(String logisticsWorkName) {
        this.logisticsWorkName = logisticsWorkName;
    }

    public long getLogisticsWorkTime() {
        return logisticsWorkTime;
    }

    public void setLogisticsWorkTime(long logisticsWorkTime) {
        this.logisticsWorkTime = logisticsWorkTime;
    }

    public String getStatusText() {
        return statusText;
    }

    public void setStatusText(String statusText) {
        this.statusText = statusText;
    }

    public long getStoreWorkTime() {
        return storeWorkTime;
    }

    public void setStoreWorkTime(long storeWorkTime) {
        this.storeWorkTime = storeWorkTime;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getStatus() {
        return status;
    }

    public boolean getStatusFinish() {

        boolean  isfinish=false;
        if (status==3){
            isfinish=true;

        }
        return isfinish;
    }

    public boolean isFinishStockIn() {
        return isFinishStockIn;
    }

    public void setStatus(int status) {
        this.status = status;
    }

        public static class ProListBean {
            /**
             * mercId : 1
             * orderId : 1333
             * userPhone : 18274970751
             * pid : null
             * userJson : {"i":60,"n":"lyyong","p":"18274970751"}
             * type : 1
             * productName : T恤
             * tranTypeText : 输送线
             * tranType : 1
             * outBatch : 0
             * statusVal : 1
             * batchOutCode : null
             * isEnablePrint : true
             * storeName : 友靠麓云店
             * id : 2082
             * isStoreStatus : 0
             * isFactoryStatus : 0
             * mercName : 友靠商户
             * orderNo : 18020785442707
             * inBatch : 0
             * factoryName : null
             * takenTime : null
             * serviceName : 清洗
             * userName : lyyong
             * userId : 60
             * scanCode : 1191820560646
             * batchInCode : null
             * createTime : 1522115215000
             * pScanCode : null
             * subtotal : 2500
             * statusText : 已入库
             * storeBracket :
             * bindCode : null
             * tranNum : 774
             * factoryBracket : null
             */

            private int mercId;
            private int orderId;
            private String userPhone;
            private Object pid;
            private String userJson;
            private int type;
            private String productName;
            private String tranTypeText;
            private int tranType;
            private int outBatch;
            private int statusVal;
            private Object batchOutCode;
            private boolean isEnablePrint;
            private String storeName;
            private int id;
            private int isStoreStatus;
            private int isFactoryStatus;
            private String mercName;
            private String orderNo;
            private int inBatch;
            private Object factoryName;
            private Object takenTime;
            private String serviceName;
            private String userName;
            private int userId;
            private String scanCode;
            private Object batchInCode;
            private long createTime;
            private Object pScanCode;
            private int subtotal;
            private String statusText;
            private String storeBracket;
            private Object bindCode;
            private int tranNum;
            private Object factoryBracket;

            public int getMercId() {
                return mercId;
            }

            public void setMercId(int mercId) {
                this.mercId = mercId;
            }

            public int getOrderId() {
                return orderId;
            }

            public void setOrderId(int orderId) {
                this.orderId = orderId;
            }

            public String getUserPhone() {
                return userPhone;
            }

            public void setUserPhone(String userPhone) {
                this.userPhone = userPhone;
            }

            public Object getPid() {
                return pid;
            }

            public void setPid(Object pid) {
                this.pid = pid;
            }

            public String getUserJson() {
                return userJson;
            }

            public void setUserJson(String userJson) {
                this.userJson = userJson;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public String getProductName() {
                return productName;
            }

            public void setProductName(String productName) {
                this.productName = productName;
            }

            public String getTranTypeText() {
                return tranTypeText;
            }

            public void setTranTypeText(String tranTypeText) {
                this.tranTypeText = tranTypeText;
            }

            public int getTranType() {
                return tranType;
            }

            public void setTranType(int tranType) {
                this.tranType = tranType;
            }

            public int getOutBatch() {
                return outBatch;
            }

            public void setOutBatch(int outBatch) {
                this.outBatch = outBatch;
            }

            public int getStatusVal() {
                return statusVal;
            }

            public void setStatusVal(int statusVal) {
                this.statusVal = statusVal;
            }

            public Object getBatchOutCode() {
                return batchOutCode;
            }

            public void setBatchOutCode(Object batchOutCode) {
                this.batchOutCode = batchOutCode;
            }

            public boolean isIsEnablePrint() {
                return isEnablePrint;
            }

            public void setIsEnablePrint(boolean isEnablePrint) {
                this.isEnablePrint = isEnablePrint;
            }

            public String getStoreName() {
                return storeName;
            }

            public void setStoreName(String storeName) {
                this.storeName = storeName;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getIsStoreStatus() {
                return isStoreStatus;
            }

            public void setIsStoreStatus(int isStoreStatus) {
                this.isStoreStatus = isStoreStatus;
            }

            public int getIsFactoryStatus() {
                return isFactoryStatus;
            }

            public void setIsFactoryStatus(int isFactoryStatus) {
                this.isFactoryStatus = isFactoryStatus;
            }

            public String getMercName() {
                return mercName;
            }

            public void setMercName(String mercName) {
                this.mercName = mercName;
            }

            public String getOrderNo() {
                return orderNo;
            }

            public void setOrderNo(String orderNo) {
                this.orderNo = orderNo;
            }

            public int getInBatch() {
                return inBatch;
            }

            public void setInBatch(int inBatch) {
                this.inBatch = inBatch;
            }

            public Object getFactoryName() {
                return factoryName;
            }

            public void setFactoryName(Object factoryName) {
                this.factoryName = factoryName;
            }

            public Object getTakenTime() {
                return takenTime;
            }

            public void setTakenTime(Object takenTime) {
                this.takenTime = takenTime;
            }

            public String getServiceName() {
                return serviceName;
            }

            public void setServiceName(String serviceName) {
                this.serviceName = serviceName;
            }

            public String getUserName() {
                return userName;
            }

            public void setUserName(String userName) {
                this.userName = userName;
            }

            public int getUserId() {
                return userId;
            }

            public void setUserId(int userId) {
                this.userId = userId;
            }

            public String getScanCode() {
                return scanCode;
            }

            public void setScanCode(String scanCode) {
                this.scanCode = scanCode;
            }

            public Object getBatchInCode() {
                return batchInCode;
            }

            public void setBatchInCode(Object batchInCode) {
                this.batchInCode = batchInCode;
            }

            public long getCreateTime() {
                return createTime;
            }

            public void setCreateTime(long createTime) {
                this.createTime = createTime;
            }

            public Object getPScanCode() {
                return pScanCode;
            }

            public void setPScanCode(Object pScanCode) {
                this.pScanCode = pScanCode;
            }

            public int getSubtotal() {
                return subtotal;
            }

            public void setSubtotal(int subtotal) {
                this.subtotal = subtotal;
            }

            public String getStatusText() {
                return statusText;
            }

            public void setStatusText(String statusText) {
                this.statusText = statusText;
            }

            public String getStoreBracket() {
                return storeBracket;
            }

            public void setStoreBracket(String storeBracket) {
                this.storeBracket = storeBracket;
            }

            public Object getBindCode() {
                return bindCode;
            }

            public void setBindCode(Object bindCode) {
                this.bindCode = bindCode;
            }

            public int getTranNum() {
                return tranNum;
            }

            public void setTranNum(int tranNum) {
                this.tranNum = tranNum;
            }

            public Object getFactoryBracket() {
                return factoryBracket;
            }

            public void setFactoryBracket(Object factoryBracket) {
                this.factoryBracket = factoryBracket;
            }
        }









}
